Release 10.1A: OpenEdge Development:
ADM and SmartObjects
Dynamic properties
Dynamic properties are object properties that are defined on an as-needed basis. Two functions,
setUserPropertyandgetUserProperty, support dynamic properties in SmartObjects. They allow you to define dynamic properties without using either thesetandgetfunctions or a temp-tableFIELD.The
setUserPropertyfunction sets a named property. It is defined in an application as follows:
The
getUserPropertyfunction returns the value of a specified property that was previously set using thesetUserPropertyfunction. ThegetUserPropertyfunction is defined as follows:
Because the property values managed by
getUserPropertyandsetUserPropertyare stored as part of theADM-DATAprocedure attribute for the SmartObject, they always are stored and returned asCHARACTERstrings.This example illustrates how to set up a dynamic property called NewLimit . It assumes that you have a SmartDataViewer, and a SmartWindow that contains a button that sets a
NewLimitattribute in the SmartDataViewer.
![]()
To set up the NewLimit dynamic property:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |